package draw;

import javax.swing.*;

public class Test1 extends JFrame{
    private JPanel jPanel;

    public Test1(){
        super("人机");

        this.jPanel=new JPanel();
        setBounds(0,0,500,500);

        //设置屏幕大小
        //  setBounds(DimensionUtil.getBounds());
        setExtendedState(JFrame.MAXIMIZED_BOTH);
        setLocationRelativeTo(null);

        setVisible(true);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setResizable(true);

    }

    public static void main(String[] args) {
        new Test1();
    }
}